Rafael Nadal's brilliance has helped Roger Federer to reach his career's lofty heights, the Swiss great says.