COMPREHENSIVE ANALYSIS OF WASTE HEAT RECOVERY AND THERMAL ENERGY