First principle study of mechanical stability, magneto-electronic and thermodynamic properties of double perovskites: A2MgWO6 (A = Ca, Sr)