D and D meson production near 4 GeV in e+e− annihilation