X-ray photoelectron spectroscopy study of nonstoichiometric tungsten oxides