Optimization, Control and Operation Strategies for Distributed Energy Systems