Use of ultrasound for localization of a foreign object in the heart