Geochemical thermodynamics of cadmium removal from water with limestone