Bioinspired Synthesis of Melaninlike Nanoparticles for Highly N-Doped Carbons Utilized as Enhanced CO2 Adsorbents and Efficient Oxygen Reduction Catalysts