Analysis of localization phenomena in Shape Memory Alloys bars by a variational approach