On the concept of pseudo-energy of T. G. Shepherd. A close link with exergy functions