Patterned growth of coiled carbon nanotubes by a template-assisted technique