Forced torsional oscillations of multilayered solids