Uncovering the origin of physical properties associated with magneto-structural transition of Ni-Mn-In-X alloys by ab initio methods