Simulation-based Holistic Functional Safety Assessment for Networked Cyber-Physical Systems