Magnetic properties of spinel oxides, InFeMO4 (M = Mg, Co and Ni)