X-ray absorption near-edge spectroscopic study of nickel catalysts