Magnetism of thin polycrystalline nickel nanowires