Dual-mode humidity detection using a lanthanide-based metal-organic framework: towards multifunctional humidity sensors.