X-ray photoelectron spectroscopy of La0.5Sr0.5MnO3