Nonequilibrium thermodynamics of a two-phase adsorbate: Lattice gas and van der Waals models