An efficient algorithm for sample induced resistance estimation in Magnetic Resonance applications