Numerical investigation of the effect of rotational degrees of freedom in rarefied polyatomic gas flows through long capillaries