Development and identification of an integrated waterworks model for trihalomethanes simulation.