Novak Djokovic and Roger Federer both paid tribute to Juan Martin del Potro at an emotional farewell match in Buenos Aires.