Structural investigation of photonic materials at the nanolevel using XPS