A water-stable terbium metal–organic framework with functionalized ligands for the detection of Fe3+ and Cr2O72− ions in water and picric acid in seawater