An optically coupled sensor for the measurement of currents induced by MRI gradient fields into endocardial leads