First-principle investigation of the structural, electronic, elastic, and elastic anisotropy properties and thermal stabilities of CeMg2Si2 and Mg2Si