A Beam Finite Element for Nonlinear Analysis of Shape Memory Alloy Devices