Noncommutative and vector-valued Rosenthal inequalities