A numerical least-square method for resolving complex pulse height spectra | lit.salon