Ion exchange in clay minerals