Spatially‐localized NMR spectroscopy employing an inhomogeneous surface‐spoiling magnetic field gradient 1. Phase coherence spoiling theory and gradient coil design