An Energy-Delay Tunable Task Allocation Strategy for Collaborative Applications in Networked Embedded Systems