Perelman's entropy functional at type I singularities of the Ricci flow