A Layered Waveguide Technique for Determination of the Viscoelastic Properties of Liquids and Deformable Solids