The opportunity cost of assembling smartphones in China is lower, giving it a comparative advantage.