Exergy analysis and resource accounting