Mechanical ventilation strategy for pulmonary rehabilitation based on patient-ventilator interaction