Entropy functionals and the Ricci flow