Spin-dependent scattering of weakly interacting massive particles in heavy nuclei