Electrodeposited Polyaniline in a Nanoporous WO3 Matrix: An Organic/Inorganic Hybrid Exhibiting Both p- and n-Type Photoelectrochemical Activity