On the thermodynamic relations between immersional and adhesional wetting