Efficient Numerical Solution of Magnetic Field Problems in Presence of Hysteretic Media for Nondestructive Evaluation