Minimizing errors in intrapulmonary shunt calculations