Argentina's Juan Martin Del Potro says he needed a slice of luck to beat Croatia's Ivo Karlovic in the Davis Cup final.