Non-singular solutions of the Ricci flow on three-manifolds