Specific heat and energy of transformation of Mg3Cd