Template-free synthesis of nickel nanowires by magnetic field