Porous diamond with high electrochemical performance