Joey Logano wins at Phoenix to win 2nd NASCAR championship