Global stocks rise on optimism about US-China deal