Structural control of the electronic properties of photodynamic azobenzene-derivatized pi-conjugated oligothiophenes.