Measuring the breathing workload in mechanically ventilated patients