Electrochemically and template-synthesized nickel nanorod arrays and nanotubes