Stereochemical aspects of the intramolecular Diels-Alder reaction