Automatic evaluation of endothelial function in patients with heart failure