Exergy, waste accounting, and life-cycle analysis