Effects of severity of chronic obstructive pulmonary disease on thyroid function.