Electroporation of inhomogeneous samples: From conduction field to equivalent resistance