During the period of isolationism, why were the Chinese successful in imposing new rules governing trade with foreigners?