Thermodynamics of copper matte converting: Part I. Fundamentals of the noranda process