An Agent-based Sensor Grid to Monitor Urban Traffic