Method For Determination Of Kinematic Sensor Position And Orientation From Magnetic Resonance Images