Electroporation generator