Co-simulation Environment for Modeling Networked Cyber-Physical Systems