Pulse-echo technique for speed of sound measurements in high-pressure liquids