Gas-dynamic boundary conditions of evaporation and condensation: Numerical analysis of the Knudsen layer