Assessment of nanocomposite photonic systems with the X-ray photoelectron spectroscopy