Network Synthesis for Distributed Embedded Systems