Thermodynamic Optimization of Complex Energy Systems (Nato Science Partnership Subseries: 3)