Intramolecular diels-alder reaction by self-assembly of the components on a lewis acid template