Simulation of a tunnel lighting plant with distributed control for safety and optimal management