Electron spin rotations induced by oscillating Rashba interaction in a quantum wire