Analysis of magnetic interaction in Ni nanowire array grown using electrodeposition process