A Service-Oriented Architecture for QoS Configuration and Management of Wireless Sensor Networks