A gene-regulatory network model for density-dependent and sex-biased dispersal evolution