Gibbsite (100) and Kaolinite (100) Sorption of Cadmium (II): A Density Functional Theory and XANES Study of Structures and Energies.