A Mechanistic Exploration Of Porous Carbons Derived From Simple Polysaccharides With Embedded Metal Nanoparticles And Their Relevance To Environmental And Electrochemical Applications