Analysis of major inorganic anions in water