Density functional study of elastic, mechanical and thermodynamic properties of MgCu with a CsCl-type structure