Halogenated hydrocarbons containing heteroatoms