Measurement of respiratory muscle function