Effect of film thickness and morphology on the performance of photoelectrochemical cells based on poly(terthiophene)