Hydrophobic interaction between macroscopic and microscopic surfaces. Unification using surface thermodynamics