Determination of the distribution of species in supported metal catalysts by X-ray photoelectron spectroscopy