Ab initio study of structural, electronic and dynamical properties of MgAuSn