Safety and use of pulmonary function tests: a retrospective study from a single center over seven years’ clinical practice