Measurement of D+ and Lambda+_c production in deep inelastic scattering at HERA