Charmonium with three flavors of dynamical quarks