Viscoelastic Waves in Layered Media