On the Connections between Counterfactual Explanations and Adversarial Examples