FE Simulation and Optimal Control of Adaptive Beams Using SMA Wires