Ternary transition metal gallides with TiNiSi, ZrBeSi and MgZn2-type structure