The resistor network method for computing effective transport properties of porous electrodes