Integrated Optimization of Spatial Structures and Energy Systems