Electrochemistry and photoelectrochemistry of two donor–acceptor polythiophene polymers with acceptor moieties in the main chain