Stabilization of refining slags by correction of their phase composition