Capillary-wave model for evaporation of a liquid