Stocks rise on optimism about Detroit bailout