An efficient procedure to bond nanostructured nitrogen functionalities to carbon surfaces