Nuclear magnetic resonance in a rotating magnetic field