Measurement of B0 -> Ds(*)+ D*- branching fractions and B0 -> Ds*+ D*- polarization with a partial reconstruction technique