Slag Foaming and Dynamic Optimization of AC EAF