Probing into the evolution of Magnetic Structure in Ni1-xAxO(A=Zn, Mg) by neutron scattering