Fluorescent imidazole-based chemosensors for the reversible detection of cyanide and mercury ions