Medtronic to buy Chinese company for $816 million