NMR pulsed-gradient diffusion measurements. I. Spin-echo stability and gradient calibration