Modeling of pulsed electric field processing