when does ionic compounds conduct electricity?​