what s are the 2 types of ionic compounds