First-principles studies of structural stabilities and enthalpies of formation of refractory intermetallics: TM and TM3 (T ¼ Ti, Zr, Hf; M ¼ Ru, Rh, Pd, Os, Ir, Pt)