Energy Optimization in Process Systems and Fuel Cells