how to find ionic character of a compound