Global cell sorting is mediated by local cell–cell interactions in the C. elegans embryo