Mathematical Analysis of Adversarial Attacks