Effects of gas bubbles on the current and potential profiles within porous flow-through electrodes