What were the responses to imperialism in China?