Mechanisms of reactions of chlorine, chlorine dioxide and nitrogen dioxide