District heating thermal generation and distribution : a practical guide to