Geometry of formal nucleophilic substitution at first-row heteroatoms: the transfer of oxygen from nitrogen to phosphorus