Brominated phenol production from the chlorination of wastewater containing bromide ions