Prognosis of mechanically ventilated patients entering the weaning process