Resilient Wireless Sensor Networks : The Case of Network Coding