Calogero-Sutherland-Moser systems, Ruijsenaars-Schneider-van Diejen systems and orthogonal polynomials