Advanced and Stable Metal-Free Electrocatalyst for Energy Storage and Conversion: The Structure–Effect Relationship of Heteroatoms in Carbon