S&P 500 ends sharply higher, jobs data fuels interest rate optimism