Direct seawater electrolysis by adjusting the local reaction environment of a catalyst