Effect of changes in thyroid function on the number of acute exacerbations and lung function decrement in patients with COPD