Electron Localization Determines Defect Formation on Ceria Substrates