Fast and precise automatic baseline correction of one- and two-dimensional nmr spectra