Injective optimal realizations of finite metric spaces