Electronic structure of nanoparticles of substoichometric hexagonal tungsten oxides