Duality rotations in string theory