Relationship between trihalomethanes and haloacetic acids with total organic halogen during chlorination