An XPS study of layered AB2×4 semiconductors