Preparation, electrical and photoelectrochemical properties of magnesium doped iron oxide sintered discs