XPS, XES and XAS studies of the electronic structure of tungsten oxides