Use of enthalpy and Gibbs free energy to evaluate the risk of amorphous formation.