Analysis and Optimization of Exergy Flows inside a Transcritical CO2 Ejector for Refrigeration, Air Conditioning and Heat Pump Cycles