Green synthesis of carbon dots and their applications