Why does a precipitate form when silver nitrate solution is added to sodium chloride solution?