Control of chaos in Frenkel–Kontorova model using reinforcement learning*