Respiratory effort and alveolar ventilation for driving closed loop controlled ventilation