Cation exchange in a fluorescent zinc-based metal–organic framework for cadmium ion detection