On the estimation of the roughness function using a logarithmic scaling of the effective slope