Reformulation of the Nosé–Hoover thermostat for heat conduction simulation at nanoscale