Modeling of the impedance response of porous metal hydride electrodes