Rapid method for the analysis of trihalomethanes in water