Elastic and Electronic Properties of Mg2Ca and Mg2Y Phases