P-doped carbon dots act as a nanosensor for trace 2,4,6-trinitrophenol detection and a fluorescent reagent for biological imaging