Composition and concentration-dependent photoluminescence of nitrogen-doped carbon dots