Highly selective and sensitive fluorescence detection of Zn(2+) and Cd(2+) ions by using an acridine sensor.