Non-invasive measures of regional lung function and their clinical application in thoracic surgery