COPD patients hospitalized with exacerbations have greater cognitive impairment than patients hospitalized with decompensated heart failure