Agent-based scalable design of a cross-layer security framework for Wireless Sensor Networks Monitoring Applications