Text this: Structural, optoelectronic, mechanical and thermodynamic properties of AgMgX3(X= Cl, Br): A first principles study