Synthesis of photoluminescent carbon dots for the detection of cobalt ions