First-Principles Investigation Of Defects And Interfaces In Rutile, Perovskite, And Fluorite-Structured Metal Oxides