Optimized recording of heteronuclear multidimensional NMR spectra using pulsed field gradients