Case-control study investigating parameters affecting ventilator-associated events in mechanically ventilated patients