Risk of developing cognitive impairment on patients with chronic obstructive pulmonary disease