Green and microwave-assisted synthesis of carbon dots and application for visual detection of cobalt(II) ions and pH sensing