Terahertz vibrations in compressed solids and biological materials