Transformation of discarded biomass into value-added flexible electronic materials