Application of ionic theory to calculate sulfide capacity of slags