Effects of lung volume and thoracic gas compression on maximal and partial flow-volume curves.