Measuring the ventilatory response to hypoxia