A holistic approach for planning natural gas and electricity distribution networks