Picosecond acoustics method for measuring the thermodynamical properties of solids and liquids at high pressure and high temperature