S&P 500, Dow rise on optimism over earnings reports, stimulus