Capital movements, intersectoral resource shifts and the trade balance