Dissipative particle dynamics with energy conservation