In situ spectroscopic investigations of electrochromism and ion transport in a poly (3,4-ethylenedioxythiophene) electrode in a solid state electrochemical cell