Three-dimensional Green's function for time-harmonic dynamics in a viscoelastic layer