Computation of flow and heat transfer through two- and three-dimensional rib-roughened passages