Structures and Thermodynamics of MgO/SiO Interfaces