Study of D0→π-e+νe, D+→π0e+νe, D0→K-e+νe, and D+→K̄0e+νe in tagged decays of the ψ(3770) resonance