Iterative fitting of magic-angle-spinning NMR spectra