The evolution of the atmosphere in the Archaean and early Proterozoic