First-principles calculation of elastic and thermodynamic properties of MgO and SrO under high pressure