Green preparation and application of carbon quantum dots