Stability of a water-vapor phase transition interface in geothermal systems