Nitrogenation of carbon surfaces via photoinduced reactions