Effects of mechanical ventilation on the lungs