Reduction of primary energy needs in urban areas trough optimal planning of district heating and heat pump installations