A FRET system built on quartz plate as a ratiometric fluorescence sensor for mercury ions in water.