Nucleation and hysteresis of vapor-liquid phase transitions in confined spaces: effects of fluid-wall interaction.