Effect of bulk doping and surface-trapped states on water splitting with hematite photoanodes