CUSCUS: An integrated simulation architecture for distributed networked control systems