Trihalomethanes and halogenated organic formation in water treatment plant