Spatial aspects of nuclear magnetic resonance spectroscopy : static and radio-frequency magnetic field gradients in principle and practice