Surface reduction of solid 3d transition metal compounds during x-ray photoelectron spectroscopy