An introduction to the CALPHAD method and the Compound Energy Formalism (CEF)