Template synthesis of carbon nanotubule and nanofiber arrays