Effect of unplanned extubation on outcome of mechanical ventilation.