Adversarial Regression for Detecting Attacks in Cyber-Physical Systems