Anion-driven selective colorimetric detection of Hg2+ and Fe3+ using functionalized silver nanoparticles