New analysis explains role of defects in metal oxides