Facile synthesis and optical properties of nitrogen-doped carbon dots