Chemical modification of electrodes