Transient Wave Propagation in Multilayered Viscoelastic Media: Theory, Numerical Computation, and Validation