Describir: Cross-Layer Design for Smart Routing in Wireless Sensor Networks