Rotaxanes as ligands: from molecules to materials.