The mechanism of Lewis acid catalyzed ene reactions