A double layer theory for mixed ion systems as applied to the moisture content of clays under restraint