The importance of exchangeable magnesium and cation-exchange capacity in the study of montmorillonitic clays