Selective Attachment of Functionalized Carbon Nanotubes on Templates Fabricated by AFM and Nanosphere Lithography