The dependence of structural, electrical and optical properties on the composition of photochromic yttrium oxyhydride thin films