Finite time generalization of thermal exergy