Acoustic Emission Study of Ti–Ni Shape-Memory Alloy in Loading–Unloading