Optimizing example selection for retrieval-augmented machine translation with translation memories