How atrial fibrillation affects heart failure