Elastic and magnetoelastic waves in yttrium iron garnet