Nasdaq, S&P 500 rise on Amazon boost; Dow under pressure