Quantification of anions and cations in environmental water samples