Construction of a ratiometric phosphorescent assay with long-lived carbon quantum dots and inorganic nanoparticles for its application in environmental and biological systems