ITSS: An Intelligent Traffic Signaling System Based on an IoT Infrastructure