Formation of binary ionic compounds