Effects of pneumothorax or pleural effusion on pulmonary function.