Production, respiration, and the isotope geochemistry of O2 in the upper water column