Nonlinear least-squares fitting without matrix inversion applied to complex Gaussian spectra analysis