explain how sound is transmitted through a medium?