Assessment of respiratory muscle function