From Residual Biomass to Bioenergy and Biochar: A Techno-Economic and Environmental Analysis of Pistachio-Shell Gasification–Cogeneration | Synapse