Resolution of discontinuity flaws based on measurements of magnetic field configuration