What happens to the speed of sound as a medium cools?