Rate-Distortion Theoretic Generalization Bounds for Stochastic Learning Algorithms