As wages rise in China, manufacturers are turning elsewhere — and taking the jobs with them.