Stable determination of a crack in a planar inhomogeneous conductor