Indole-based chemosensor for Hg2+ and Cu2+ ions: applications in molecular switches and live cell imaging.