Crystal structure and free energy of Ti2Ni3 precipitates in Ti–Ni alloys from first principles