Quark-level analogue of nuclear fusion with doubly heavy baryons