Vibrations of Layered Thermoelastic Continua