Effects of exchange and final-state interactions in the reactions 2H(3He, 3H p)p and 2H(3He, 3He p)n