Formation of macrocyclic structures by use of the diels-alder reaction