Thermodynamics of the nickel and cobalt removal from aqueous solution by layered crystalline organofunctionalized barium phosphate