Thermodynamic evaluations of extractive metallurgical processes