Damping of sound waves in the terahertz range and strength of the boson peak