Optimal Planning of a Biomass Conversion System Considering Economic and Environmental Aspects