Acquisition of a nuclear magnetic resonance signal using an electric field detection technique