Inverse sounding problem using stabilization of the magnetic field of a loop