A numerical phasing technique for application to one-dimensional NMR spectra