Why is the speed of sound greater in solids than gases?