Using an energetic and exergetic life cycle analysis to assess the best applications of legumes within a biobased economy