Pulsed nuclear magnetic resonance magnetometer