Dynamic Modeling, Analysis, and Control of Integrated Electricity and District Heating Systems