Rational solutions of the Garnier system in terms of Schur polynomials