Mechanical Ventilation and Optimisation through Analytical Lung Model