Photoacoustic investigation of phase transitions in solids