Joint inversion of seismic and electric data applied to 2D media