substitution of halogenated compounds