Multivalent cation intercalation