Solvent triggering structural changes for two terbium-based metal-organic frameworks and their photoluminescence sensing.