Directed self-assembly for nanofabrication and device integration