Photo- and thermoresponsive supramolecular assemblies: reversible photorelease of K+ ions and constitutional dynamics.