A sustainable strategy for production and functionalization of nanocelluloses