Synthesis of carbon dots with strong luminescence in both dispersed and aggregated states by tailoring sulfur doping.