Effect of non-invasive ventilation on the measurement of ventilatory and metabolic variables