Atomistic simulation of defects and thermal conductivity in oxides