Entropy and Efficiency: Thermodynamic Insights into Sustainable Energy Technologies