Deuteron tensor polarization in the 9Be(p, d)8Be reaction