the speed of sound depends on the medium