The characteristics of the microencapsulated TiNi alloys and their electrodes