Reactions of 2,3-epoxyhalides. Synthesis of optically active allylic alcohols and homoallylic epoxides