Modelling and Simulation Applications on Cyber-Physical Systems’ Security and Resilience