Directing the self-assembly of block copolymers