Influence of obstructive sleep apnea on cognitive impairment in patients with COPD.