Investigations of phase transitions in selected high Tc superconductors and ferroelectrics using ultrasonic technique