does barium and lithium form an ionic compound