Spatially resolved valence band study of nanostructured carbon films containing transition metal nanocrystals