The oxygen geochemical cycle: dynamics and stability