Heteroatom effect on potential energy topology. A novel reaction mechanism of stereospecifc Staudinger synthesis