Heart failure as a risk factor for acute exacerbations of chronic obstructive pulmonary disease