First-principles study of the structural, vibrational, phonon and thermodynamic properties of transition metal carbides TMC (TM = Ti, Zr and Hf)