The sum over topologies in three-dimensional Euclidean quantum gravity