X-ray photoelectron spectroscopy and magnetism of Mn1−xAlx alloys