Linear kinetic analysis of evaporation and condensation