Optimization of traffic networks by using genetic algorithms