Stocks rise, oil sinks on hopes of U.S.-Iran deal