sound travels faster in denser media