A general framework for ion equilibrium calculations in compacted bentonite. (1st March 2017)