Rational Design of Carbon‐Rich Materials for Energy Storage and Conversion