Direct numerical simulation of turbulent flow and heat transfer in a square duct roughened with transverse or V-shaped ribs