Chemometric methods to process online spectrometry for quality monitoring of different water matrices