Flash smelting