Modulating Excitation Energy of Luminescent Metal–Organic Frameworks for Detection of Cr(VI) in Water