Harmonic viscoelastic waves in a layer and in an infinite cylinder