Djokovic's win over Medvedev puts Serbia into ATP Cup final