Availability of O2 and H2O2 on the pre-photosynthetic Earth