Shear deformation by the stress-induced martensitic transformation in shape memory alloys under the polycrystalline constraint