Use of alloys with shape memory in medicine