by reaction with halogens or halogen-containing compounds