Optimizing Charge Extraction In Oxynitride Photoanodes