Atomic-scale structure of misfit dislocations in CeO2/MgO heterostructures and thermodynamic stability of dopant-defect complexes at the heterointerface.