An Optimal Control View of Adversarial Machine Learning