P- and n-doping processes in polythiophene with reduced bandgap. An electrochemical impedance spectroscopy study