Measurement of the B0 meson lifetime with partial reconstruction of B0→D*-π+ and B0→D*-ρ+ decays