The influence of a magnetic field on the thermal diffusion of polyatomic gas-noble gas mixtures