Layering, condensation, and evaporation of short chains in narrow