Contact angle and solid-liquid-vapor equilibrium