Comparison of the physical properties of polypyrrole produced by anodic oxidation and by photoelectrochemical activation of titanium dioxide