Logano holds off Gordon to win Duck Commander 500