Lung function :physiology, measurement and application in medicine