Optimal Control for Shape Memory Alloys of the One-Dimensional Frémond Model