Dual p- and n-type doping in an acid sensitive alternating bi(ethylenedioxythiophene) and pyridine polymer