Text this: A Cross-Layer Framework for Network Management in Wireless Sensor Networks Using Weighted Cognitive Maps