Effect of Mg2+ on the thermal inactivation and unfolding of creatine kinase.