Security and Resilience in Cyber-Physical Systems