Formation of Haloacetonitriles, Haloacetamides, and Nitrogenous Heterocyclic Byproducts by Chloramination of Phenolic Compounds.