Dynamic finite-element model for efficient modelling of electric currents in electroporated tissue