Mechanisms of hemin-catalyzed oxidations: rearrangements during the epoxidation of trans-cyclooctene