A dynamic routing strategy for the traffic control of AGVs in automatic warehouses