Text this: Ab initio study of the cohesive properties, electronic structure and thermodynamic stability of the Ni-In and Ni-Sn intermetallics