Structural stability of Ni-containing half-Heusler compounds