Coupled microstructural and magnetic transition in Co-doped Ni nano-arrays