Analysis of multicomponent spectra by the simplex method