Coupled evolution of nervous system and body segmentation characteristics