Risk factors associated with development of pulmonary impairment after tuberculosis.