Lithographically-directed self-assembly of nanostructures