Chlorination reactions of ephedrines revisited. Stereochemistry and functional groups effect on the reaction mechanisms