Stimuli-responsive reversible assembly of 2D and 3D metallosupramolecular architectures.