Distinguishing Attacks and Failures in Industrial Control Systems