Molecular-dynamic examination of recrystallization of metals in thermomechanical treatment