Dynamic materials through metal-directed and solvent-driven self-assembly of cavitands.