Oil climbs on optimism over China’s demand recovery