Nasdaq, S&P 500 rise to record highs at open