A photoelectrochemical and ac impedance study of anodic titanium oxide films