The Role of Thermodynamics in Renewable Energy Technologies