Nucleophilic substitution in aryl orthophosphates and mechanism of migration of halogen in halogen derivatives of carbonyl compounds