Singularities of three-dimensional Ricci flows