The oxygen cycle of the terrestrial planets: Insights into the processing and history of oxygen in surface environments