how to measure respiratory mechanics during controlled mechanical ventilation