On the oxidation state of titanium in titanium dioxide