Engineering electrode and catalyst environments for enhanced water electrolysis