Generalization Bounds with Data-dependent Fractal Dimensions