Clinical outcomes and prognostic factors for prolonged mechanical ventilation in patients with acute stroke and brain trauma.