Can compounds be both ionic and covalent?