Using improved particle swarm optimization to tune PID controllers in cooperative collision avoidance systems