The speed of sound in a material depends on the