Eco-friendly mercury ion detection and removal in water using anthocyanins: mechanistic insights through DFT studies | Synapse