Security of Cyber-Physical Systems