Numerical Study of the Effects of Residual Stresses in Shape Memory Alloys Thin Films Used in the Design of Microsystems