Artificial intelligence tool predicts life expectancy in heart failure patients