The behaviour of porous electrodes in a flow-by regime—I. theoretical study