Measurement of e + e - → DD cross sections at the ψ(3770) resonance