Optimization of logistics in industrial districts through creation of a community of agents