Effects of mechanical ventilation on right and left ventricular function.