China’s push to modernize its manufacturing with robotics is partly a response to labor shortages and fast-rising wages.