Approaches to conducting polymer devices with nanostructures: photoelectrochemical function of one-dimensional and two-dimensional porphyrin polymers with oligothienyl molecular wire