In 1839 the British became more imperialistic in China by declaring war and forcing the Chinese to sign trade aggrements what was the effect of this action