Medtronic posts lower earnings on charges