On the relationship between the phonon anomalies and the AB initio calculated Fermi surfaces of TaC and NbC