Electrical conductivity and ionic compounds