Computer aided chemistry - III. Spectral envelope deconvolution based on a simplex optimization procedure