Electronic defects in metal oxide photocatalysts