Functionalization of 3,4-ethylenedioxythiophene