Acute respiratory distress syndrome in mechanically ventilated patients with community-acquired pneumonia