Prediction of postoperative pulmonary function in patients undergoing lung resection