Privacy Analysis of Online Learning Algorithms via Contraction Coefficients