Effects of Trade Costs and Capital Controls on Trade Imbalances