a wave is traveling through a medium. as it travels, it displaces particles of matter in the same direction as the wave is traveling. this type of wave is a