Biogeochemical modelling of the rise in atmospheric oxygen