Phosphorescent iridium(III) complex with an N^O ligand as a Hg(2+)-selective chemodosimeter and logic gate.