Structure and solvents effects on the optical properties of sugar-derived carbon nanodots