Photoelectrochemical properties of undoped and Ti-doped WO3