Guided self-assembly on the nanoscale