Ab initio study of the formation and degradation reactions of chlorinated phenols.