Thermodynamic equilibrium and metal-organic interface dipole