Variables associated with changes in spirometry in patients with obstructive lung diseases