An analytical approach to the unified solution of kinetic equations in rarefied gas dynamics. I. Flow problems