Estimating ocean's density stratification from surface data