Photoelectrochromic devices based on sputtered WO3 and TiO2 films