Medtronic posts strong Q2 on diabetes, pain management