Robustness Implies Generalization via Data-Dependent Generalization Bounds