with halogens or halogen-containing compounds