Effects of Magnesium on Cation Selectivity and Structural Stability of Sodic Soils