The Chemistry of Metal Casting and Refining