Controlled template synthesis and properties of cobalt nanotubes