Photovoltaic properties of poly(terthiophene) doped with light-harvesting dyes and photocurrent generation mechanism