N-doped carbon dots with tunable emission for multifaceted application: solvatochromism, moisture sensing, pH sensing, and solid state multicolor lighting