The automatic selection of ventilation parameters during the initial phase of mechanical ventilation