Diagnosis of mechanical failures of total artificial hearts.