An IoT cloud system for traffic monitoring and vehicular accidents prevention based on mobile sensor data processing