J UDI S HARE : Judicious Resource Allocation for QoS-based Services in Shared Wireless Sensor Networks