A new regio- and stereoselective functionalization of allylic and homoallylic alchols