In situ spectroelectrochemical characterization of poly(3,4-ethylenedioxythiophene)