Sustainable alternative in environmental monitoring using carbon nanoparticles as optical probes