Energy and Thermoeconomic Analysis of Energy Devices