Estimation of the Roughness Function in Turbulent Flows Using the Slope of the Roughness