Estimation of the pulmonary elastance and setting of the ventilation condition using fuzzy logic