Designing chemically robust metal oxides for visible-light photocatalysis