On the thermodynamics of gas solubility: relation between equation-of-state and activity coefficient models