Gas exchange and ventilation–perfusion relationships in the lung