Density functional theory guide to structure and thermodynamics of metal hydrides – Case study of (Ti, Zr, Hf)Ni intermetallic compounds