Template-confined growth and structural characterization of amorphous carbon nanotubes