S&P 500, Dow surge to record closing highs as Nvidia sparks AI frenzy