Two-dimensional analysis to improve the output stress in ferromagnetic shape memory alloys