Measurement of D+- and D0 production in deep inelastic scattering using a lifetime tag at HERA: