X-ray photoelectron spectroscopy of nickel compounds