Photophysics and chemistry of nitrogen-doped carbon nanodots with high photoluminescence quantum yield