Medtronic earnings decline on charges for failed study