Asymmetric six-vertex model and the classical Ruijsenaars–Schneider system of particles