Techno-economic analysis of biochemicals and biofuels production via thermal and electrochemical processes