Zaslat SMS: Flash smelting: analysis, control and optimization