A generalized computational structure for regional life-cycle assessment