Lattice dynamics and hyperfine interactions of tin in tantalum sulfide layer compounds