Import Competition from and Outsourcing to China: A Curse or Blessing for Firms?