Ultrafast water sensing and thermal imaging by a metal-organic framework with switchable luminescence