Template-directed synthesis of multiply mechanically interlocked molecules under thermodynamic control.