what was the balance of trade like before the opium war