Mechanism of self-discharge in conductive polymer electrodes