Rarefaction effects on gas viscosity in the Knudsen transition regime