Torsional oscillations of a rod in a layered medium of simple fluids