Carbon dots prepared by thermal reactions and selective detections of copper and mercury ions in visible spectrum