Improving the resilience of cyber-physical systems under strategic adversaries