Calculation of three-dimensional laminar flows in T-shaped junctions