Temperature and salinity history of the Precambrian ocean