Crown-ether- and porphyrin-attached gel-phase resins in thermodynamically controlled rotaxane assembly.