Dissolution and passivation of nickel. An X-ray photoelectron spectroscopic study