Instrumentation for nuclear magnetic resonance in zero and ultralow magnetic field