factors controlling ocean density