NEXAFS characterization of nanostructured carbon thin-films exposed to hydrogen