Real-time task mapping and scheduling for collaborative in-network processing in DVS-enabled wireless sensor networks