Import competition from and offshoring to China: A curse or blessing for firms?