Method for electric parametric characterization and optimization of electroporation on a chip