Ferromagnetism in the austenitic and martensitic states of Ni-Mn-In alloys