A Methodology for the Automatic Regulation of Intersections in Real Time using Soft-computing Techniques