Electron energy-loss spectroscopy and first-principles calculation studies on a Ni–Ti shape memory alloy