Magnetic analysis of martensitic and austenitic phases in metamagnetic NiMn(In, Sn) alloys