Modeling of Gas and District Heating Grids for Plug-and-Play Control Design