factors controlling density of the oceans