China’s Midea buys nearly half of German robotics firm Kuka