Structure of Dense Cores in M17 SW. I. A Multitransition CS and C 34S Study