Ab initio calculations of the structure and mechanical properties of vanadium oxides