Predictions of the maximum energy extracted from salinity exchange inside porous electrodes.