Heterogeneous Co-Simulation of Networked Embedded Systems