A fluorescent "ON-OFF-ON" switch for the selective and sequential detection of Hg2+ and I- with applications in imaging using human AGS gastric cancer cells.