AC and DC operated magnetic yokes for magnetic particle inspection