First-principles investigation on mechanical, electronic, and thermodynamic properties of Mg2Sr under high pressure