First-principles studies of Ni–Ta intermetallic compounds