Pressure- and work-limited neuroadaptive control for mechanical ventilation of critical care patients