Measurement of CP-violating asymmetries in B0 -> D (*)+- D-+