Measurement of the B→D[over ¯]^{(*)}D^{(*)}K branching fractions