Electron blocking and hole extraction by a dual-function layer for hematite with enhanced photoelectrocatalytic performance