One-shot Localization and Segmentation of Medical Images with Foundation Models