how does density affect the movement of ocean water?