Theoretical aspects of intramolecular diels-alder reactions, sigmatropic hydrogen shifts and degenerate cope rearrangements