Security and Resilience in Cyber-Physical Systems: Detection, Estimation and Control