Fine-Grained Analysis of Stability and Generalization for Stochastic Gradient Descent