Generalised dissipative particle dynamics with energy conservation: density- and temperature-dependent potentials.