Pressure and temperature dependence of the dielectric properties and phase transitions of the ferroelectric perovskites: PbTiO3 and BaTiO3