Improved determination of color-singlet nonrelativistic QCD matrix elements for S-wave charmonium