High-voltage electroporating AC generator