Preparation and magnetic properties of Ni nanorod arrays