An evaluation of NOM precursors and bromide ion in the formation of haloacetic acids (HAAs) in water treatment