Phase stability, mechanical property, and electronic structure of an Mg-Ca system.