Brillouin scattering investigation of the structural phase transition of TlCdF3 and RbCaF3