Thermodynamic analysis of nickel smelting process