Tuning Sugar Biomass Waste Conversion for the Preparation of Carbon Materials for Supercapacitors and Catalysts for Oxygen Reduction