Two-step rise of atmospheric oxygen linked to the growth of continents