N, B-doped carbon dots as a sensitive fluorescence probe for Hg(2+) ions and 2,4,6-trinitrophenol detection for bioimaging.