Electrochromism of titanium oxide thin films