Fluorescent carbon dots synthesized by microwave-assisted pyrolysis for chromium(VI) and ascorbic acid sensing and logic gate operation.