Template-Based Synthesis of Nanorod or Nanowire Arrays