Spin-dependent scattering and absorption of thermal neutrons on dynamically polarized nuclei