Ratiometric detection of Cr3+ and Hg2+ by a naphthalimide-rhodamine based fluorescent probe.