what holds an ionic compound together