Invia SMS: Stoichiometry and thermodynamics of metallurgical processes