Rationalization of the effects of compatible solutes on protein stability in terms of thermodynamic nonideality