A Thermodynamically Correct Treatment of Externalities with an Exergy-Based Numeraire