How did the British imperialism alter the future of china?