Thoracoscopic lobectomy for non-small-cell lung cancer in patients with impaired pulmonary function: analysis from a national database