Estimation of absolute and relative permeabilities in petroleum reservoirs