Thermophoresis of nanoparticles in the transition regime