the formula for an ionic compound always indicates the