Cyclizations versus rearrangements in the reactions of some epoxyolefins with Lewis acids