App may provide early detection of heart failure