Relating the formation energies for oxygen vacancy defects to the structural properties of tungsten oxides