X-ray photoelectron spectroscopy application to metals and alloys