Nanofabrication by self-assembly