Study of the magneto-structural transition and associated functional properties in the Ni-Mn-In and Ni-Mn-Sn Alloys