Effects of mechanical ventilation on the measurement of cardiac output by thermodilution