Local electronic structure and photoelectrochemical activity of partial chemically etched Ti-doped hematite