Characterization of nanocrystalline diamond films by core‐level photoabsorption