Growth of carbon nanotubes with resist-assisted patterning process