The influence of thermal treatment conditions (solvothermal versus microwave) and solvent polarity on the morphology and emission of phloroglucinol-based nitrogen-doped carbon dots.