Untangling the respective effects of heteroatom-doped carbon materials in batteries, supercapacitors and the ORR to design high performance materials