Ultrafast rotations of spins in quantum dots