VirtuS: a configurable layer for post-deployment adaptation of sensor networks