In-situ structure and catalytic mechanism of NiFe and CoFe layered double hydroxides during oxygen evolution