On the Design and Control of Wireless Networked Embedded Systems