Degradation of carbon materials in electrocatalysis