A Blockchain-Based Deep-Learning-Driven Architecture for Quality Routing in Wireless Sensor Networks