Mechanisms of sexually dimorphic development in the nervous system of Caenorhabditis elegans