New quality measures for adversarial attacks with applications to secure communication