A switchable sensor and scavenger: detection and removal of fluorinated chemical species by a luminescent metal–organic framework