Self-assembly of nanoscale lateral segregation profiles