how to calculate dead space ventilation