Current-distribution effects on the impedance of porous electrodes and electrodes covered with films