Ionic compounds and precipitation reactions