Increasing the efficiency of renewable energy in the production and transfer of district heat