Resistance distribution in electrochemical capacitors with a bipolar structure