Simulation of Pulsed-Field Ablation and Electroporation