Practical least squares approximation of chromatograms