Evaluation of pneumonia due to mechanical ventilation and its association with the severity of disease in patients admitted to intensive care unit