Pulmonary rehabilitation in patients with idiopathic pulmonary fibrosis: comparison with chronic obstructive pulmonary disease