On the thermodynamics of the fountain phenomenon in liquid helium II and its inverse effect