Modelling ion binding by humic acids