How does the alveolar partial pressures of O2 and CO2 vary from base to apex when the patient is upright?