Respiratory mechanics in ventilated patients